package com.nuclearwm.nuclear;


import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.Menu;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.ImageButton;

public class MenuActivity extends Activity implements OnClickListener {

	private ImageButton imageButton01;
	@SuppressWarnings("deprecation")
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
        setContentView(R.layout.menu_main);
        imageButton01 = (ImageButton)findViewById(R.id.imageButton01);
        imageButton01.setOnClickListener(this);
        
	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
		getMenuInflater().inflate(R.menu.main, menu);
		return true;
	}

	@Override
	public void onClick(View arg0) {
		// TODO Auto-generated method stub
		if(arg0 == findViewById(R.id.imageButton01)) {
			Intent singleOffLine = new Intent("com.nuclearwm.SINGLEOFFLINE");
			startActivity(singleOffLine);
		}
	}

}
